import request from '@/utils/request'

export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
// 查询信息
export function getEmployeeList(page, size) {
  return request({
    url: '/sys/user',
    mmethod: 'GET',
    params: { page, size }
  })
}
// 删除
export function delEmployee(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'DELETE'
  })
}
// 添加
export function addEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 导入Exccel
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    data

  })
}

export function assignRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'PUT',
    data
  })
}

